/*
 * File Name：TrackTime.java
 * Copyright：Copyright 2008-2012 CiWong.Inc. All Rights Reserved.
 * Description： TrackTime.java
 * Modify By：PLA-ZJLIU
 * Modify Date：2012-12-25
 * Modify Type：Add
 */
package com.ciwong.ciwongwrite.mode;

import android.graphics.Canvas;

/**
 *
 * <pre>
 * </pre>
 *
 * @author PLA-ZJLIU
 * @version ciwong v.1.0 2012-12-25
 * @since ciwong v.1.0
 */
public class TrackTime extends TrackBase
{

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private int timeSpan;

    public TrackTime(int time)
    {
        timeSpan = time;
    }

    /**
     * 纳秒为单位<br />
     * {@inheritDoc}
     */
    @Override
    public int getTimeSpan()
    {
        return timeSpan;
    }

    @Override
    public void draw(Canvas mCanvas)
    {

    }

    @Override
    public String format(boolean touchDown)
    {
        return timeSpan / 1000 + "";
    }

}
